﻿interface Date {
    AddDays(days): Date;
}
Date.prototype.AddDays = function (days) {
    var date = new Date(this.valueOf());
    date.setDate(date.getDate() + days);
    return date;
}